<!DOCTYPE html>
<html>
<head>
    <title>HLS 播放器</title>
    <meta charset="utf-8">
    <style>
        /* 播放器容器样式 */
        #player-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 宽高比例 */
        }

        /* 播放器视频样式 */
        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* 播放列表样式 */
        #playlist {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            padding: 10px;
            background-color: #f1f1f1;
            border-radius: 5px;
        }

        #playlist li {
            flex-basis: 30%; /* 每项占据的宽度百分比 */
            margin-bottom: 10px;
            padding: 5px;
            background-color: #ff6b6b; /* 修改为你喜欢的颜色 */
            color: #fff;
            text-align: center;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        #playlist li:hover {
            background-color: #ff414d; /* 修改为你喜欢的鼠标悬停颜色 */
        }

        #playlist li.active {
            background-color: #333;
        }
    </style>
</head>
<body>
    <div id="player-container">
        <video id="player" controls></video>
    </div>
    <ul id="playlist">
                <li onclick="changeSource('https://42-202-34-3.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/7ea49ea221d57a6727fddf2fec96e796_1668777240/480p/stream.m3u8?auth_key=1699328164-9743724-0-3ee8333e631a2910c66c085114d47fc7&xmfcid=14403dfe-b02e-4c96-87db-cf1d5ab1c536-46-91a9b5b02')">血恋1</li>
                <li onclick="changeSource('https://120-232-54-47.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/bd46e664585d5f90d36d87cf439574da_566514907/480p/stream.m3u8?auth_key=1699328005-3850579-0-d20538f078abebabe45c28ee9f8eed22&xmfcid=8b339a4f-1d6a-48c9-8069-9dfbc75e8dcd-44-96649bc0f')">赶尸艳谈</li>
                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/2d3ed6d5cc322025469cc7e340d30164_371286876/480p/stream.m3u8?auth_key=1699329106-8552366-0-2d523bfa3253070e0a7948ba9d9035d6&xmfcid=7d911a48-3dea-4cd6-9780-f95e006208d8-47-dcc376741')">兰情儿与狗1</li>

                <li onclick="changeSource('https://42-202-34-3.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/e8ec04ea1836a9e55f2065bc909b9001_110205892/480p/stream.m3u8?auth_key=1699329190-9487943-0-621de463488288de0e2c259a22aa4fa0&xmfcid=19ae2eaa-09d9-47bb-ba89-ca577d693da2-43-91a9b5b02')">兰情儿与狗2</li>
                <li onclick="changeSource('https://120-232-54-48.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/b42beb98fa050bc62fa76052ad1e1e21_68800327/480p/stream.m3u8?auth_key=1699329250-7027939-0-137e1733602d37d54c6cd4e2c43069e2&xmfcid=4df03d0c-ea00-4b56-abff-26a7fcc132c5-43-91a9b5b02')">蓝精灵与狗</li>
                <li onclick="changeSource('https://120-232-54-45.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/ae867204ace1d67d00ec5e1ead900dc1_224838217/480p/stream.m3u8?auth_key=1699329306-208815-0-d27f940261ef6fe468db913268b635b5&xmfcid=700c8495-2c10-47bd-8164-b5ef5c0a2ce1-40-12cac736c')">娘子与狗</li>

                <li onclick="changeSource('https://120-201-131-66.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/e7571b77bc24ee414c736f76b1f99307_835111318/480p/stream.m3u8?auth_key=1699329352-2965946-0-9d0334c78a8be46d890bc922537ce34a&xmfcid=80ada5ee-731b-4fbd-8653-d3348155c5ce-38-12cac736c')">情话与狗</li>
                <li onclick="changeSource('https://120-201-131-66.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/9da43279a0a00fd25c533ef7303ba3d1_89830256/480p/stream.m3u8?auth_key=1699329396-1715925-0-f0438f68273afb3936219468f46d4fcf&xmfcid=09bbd4d9-51dc-4b1f-8ede-037d20a80705-46-91a9b5b02')">贝儿与狗</li>
                <li onclick="changeSource('https://42-202-34-3.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/31f60821c47cef92affeaccc58cc372a_494740198/480p/stream.m3u8?auth_key=1699331438-6775612-0-8c317f3dadfa5d32c6f2446741e15265&xmfcid=8ae9271b-6e83-4d2e-83da-8c323bb3ee54-37-12cac736c')">全能拳交</li>

                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/933b73c1620dc3546e09426f8abc8fd8_1460299308/480p/stream.m3u8?auth_key=1699331533-6006799-0-fe97baa79b3387f0b0f800093f612ea6&xmfcid=75354856-4b1b-44b2-937c-5d94f0c83c5a-47-34cafd4f5')">另类器官1</li>
                <li onclick="changeSource('https://120-232-54-49.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/933b73c1620dc3546e09426f8abc8fd8_1460299308/480p/stream.m3u8?auth_key=1699331578-4270202-0-26be5271d870ec35136be36116ce59dd&xmfcid=8ff31f6c-a2d5-43b8-a954-f5be353e9828-45-34cafd4f5')">另类器官2</li>
                <li onclick="changeSource('https://120-201-131-66.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/b46de872847186df5066334bf1a30bb4_900907671/480p/stream.m3u8?auth_key=1699331619-7168767-0-ad8a124d0563e09ade7732c609819603&xmfcid=c38f59ce-edfb-4e61-a7a9-5bdbc7c400be-46-dcc376741')">挑战36CM</li>

                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/6f0b6c79a2ca224b1b3150c2b03e0c73_2776206825/480p/stream.m3u8?auth_key=1699333711-1444464-0-015ac791313810f137907e0ad06384c0&xmfcid=686ba167-0d9d-4dd2-a569-45655523136e-47-91a9b5b02')">最强下体开发</li>
                <li onclick="changeSource('https://120-232-54-47.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/82994b5e2976cee793b5787c6d8ccc54_1409735644/480p/stream.m3u8?auth_key=1699336406-6966555-0-148c086707d74e913614c27f7c41ab8a&xmfcid=6ae2e261-a80b-42b5-9694-8f5134294822-42-96649bc0f')">畑山夏樹</li>
                <li onclick="changeSource('https://120-232-54-44.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/5f5f4a31a47ac378261b7e27e8a2e627_12724849036/480p/stream.m3u8?auth_key=1699339414-8636366-0-1a383d288cba0514cf2c72fa6bda54d6&xmfcid=ce7bdb47-20bb-41b9-b424-9301d2349ec5-46-12cac736c')">拳交女王</li>

                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/f9b77984f3528af8522c5650fcfda584_3821307167/480p/stream.m3u8?auth_key=1699339572-9089530-0-70d1a918e75f654cdddad151cc509995&xmfcid=098475f0-bd4f-4e5f-aea0-a15eb92fc8da-44-8ec36400d')">电报孕妇群</li>
                <li onclick="changeSource('https://120-201-131-66.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/4c89f4103ed16c83ab3473a6e7455df5_3428159005/480p/stream.m3u8?auth_key=1699340357-9552249-0-ae2bbe10b23f383386e7d9db98f3348a&xmfcid=89014d23-317e-403b-a0fe-9becde1465c6-43-8ec36400d')">站街女战百男</li>
                <li onclick="changeSource('https://120-201-131-66.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/ce81a125c6f66224f3b625b2501b3fea_620447043/480p/stream.m3u8?auth_key=1699340709-171883-0-0235541721ba1fbc712926ec05fabf0b&xmfcid=e7b99aa3-4e00-4e99-ba2e-cc2d52fb07e3-46-96649bc0f')">偷拍车轮接客</li>

                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/ecbb34bda30c7ac39a9bac8c795953df_1811564216/480p/stream.m3u8?auth_key=1699341445-6651597-0-baf85116b33e474a91007ef3dfdfad49&xmfcid=149e5255-b9a5-440a-9425-de080f941f95-45-12cac736c')">城中村接客</li>
                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/41b3a3789321eb50824957b69b503594_5795433415/480p/stream.m3u8?auth_key=1699342705-2339046-0-306df5e6522cd0ba3b9e455d29f1d18f&xmfcid=0956e402-375e-4d1e-a2d6-9d46279e509b-42-dcc376741')">北京天使永定门</li>
                <li onclick="changeSource('https://120-201-131-67.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/c5c4823e23f0dd710e0026b1bf55ddfe_2903654124/480p/stream.m3u8?auth_key=1699344132-1095697-0-c0e5910a5762e14971b02665b95cebbc&xmfcid=ca5ee7c4-3c78-46ec-8d0e-1fc2efe7d484-44-91a9b5b02')">户外漏鸡巴</li>

                <li onclick="changeSource('https://42-202-34-3.pd1.123pan.cn:30443/download-v.123pan.cn/m2/123-hls/hls/3a938acbf82220c72ae2d4249a9cc8ea_5117680587/480p/stream.m3u8?auth_key=1699345489-7308337-0-9e55a302042929c62d5ef22272731af8&xmfcid=0e8893e0-73b9-4c5f-8413-e4bf0828dc7b-47-12cac736c')">浆果儿粉红猪</li>
                <li onclick="changeSource('https://42-202-34-3.pd1.123pan.cn:30443/download-v.123pan.cn/m2/123-hls/hls/c14ba28b989a566b6dd5acc527f70fa6_4483035686/480p/stream.m3u8?auth_key=1699345753-7303681-0-96ea6bdd0654032aaf99c35e5765218e&xmfcid=2d4a711d-0340-4021-b404-22d6e35f51d3-46-dcc376741')">四人全裸互舔</li>
                <li onclick="changeSource('https://120-232-54-47.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/734f1202a69a708771cc9ff8ca3090a5_3219167327/480p/stream.m3u8?auth_key=1699346019-2343081-0-812a14cda99ec4b55d4b057f58fec40d&xmfcid=44cf6a31-55dc-4892-8231-0d7021607aac-46-12cac736c')">浆果儿超市</li>

                <li onclick="changeSource('https://120-232-54-48.pd1.123pan.cn:30443/download-v.123pan.cn/m2/123-hls/hls/340bd05a087959ab05ff78bf9371c07f_4494644564/480p/stream.m3u8?auth_key=1699346403-8953920-0-2953314980040227d857465e73f05648&xmfcid=61958f71-20da-401d-b692-b06bfac0e7a2-47-34cafd4f5')">温泉露出裸体问路车内自慰</li>
                <li onclick="changeSource('http://113.207.84.199/session/eaa414f4-47a8-11ee-bcbe-5254006225bb$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv2HD/__op/default/__f/index.m3u8?token=271999be01e8d81c4e247d8d7b484c4f_1693532067_1693532067')">CCTV2</li>
                <li onclick="changeSource('http://113.207.84.197/session/459cb6e0-47a9-11ee-8422-525400dfb345$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv3HD/__op/default/__f/index.m3u8?token=b2628f14bbfbb38e2b27a23121ece8bd_1693535479_1693535479')">CCTV3</li>

                <li onclick="changeSource('https://120-232-54-45.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/fba5129c11c0b5d7309df8d62ce0f5b9_1071620807/480p/stream.m3u8?auth_key=1699268225-5287708-0-f9fa2d7d2196361194ae6c4d060dc64b&xmfcid=3a776ebd-28fe-4250-955c-1d3e5a64854c-47-34cafd4f5')">CCTV1</li>
                <li onclick="changeSource('http://113.207.84.199/session/eaa414f4-47a8-11ee-bcbe-5254006225bb$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv2HD/__op/default/__f/index.m3u8?token=271999be01e8d81c4e247d8d7b484c4f_1693532067_1693532067')">CCTV2</li>
                <li onclick="changeSource('http://113.207.84.197/session/459cb6e0-47a9-11ee-8422-525400dfb345$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv3HD/__op/default/__f/index.m3u8?token=b2628f14bbfbb38e2b27a23121ece8bd_1693535479_1693535479')">CCTV3</li>

                <li onclick="changeSource('https://120-232-54-45.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/fba5129c11c0b5d7309df8d62ce0f5b9_1071620807/480p/stream.m3u8?auth_key=1699268225-5287708-0-f9fa2d7d2196361194ae6c4d060dc64b&xmfcid=3a776ebd-28fe-4250-955c-1d3e5a64854c-47-34cafd4f5')">CCTV1</li>
                <li onclick="changeSource('http://113.207.84.199/session/eaa414f4-47a8-11ee-bcbe-5254006225bb$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv2HD/__op/default/__f/index.m3u8?token=271999be01e8d81c4e247d8d7b484c4f_1693532067_1693532067')">CCTV2</li>
                <li onclick="changeSource('http://113.207.84.197/session/459cb6e0-47a9-11ee-8422-525400dfb345$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv3HD/__op/default/__f/index.m3u8?token=b2628f14bbfbb38e2b27a23121ece8bd_1693535479_1693535479')">CCTV3</li>

                <li onclick="changeSource('https://120-232-54-45.pd1.123pan.cn:30443/download-v.123pan.cn/m17/123-hls/hls/fba5129c11c0b5d7309df8d62ce0f5b9_1071620807/480p/stream.m3u8?auth_key=1699268225-5287708-0-f9fa2d7d2196361194ae6c4d060dc64b&xmfcid=3a776ebd-28fe-4250-955c-1d3e5a64854c-47-34cafd4f5')">CCTV1</li>
                <li onclick="changeSource('http://113.207.84.199/session/eaa414f4-47a8-11ee-bcbe-5254006225bb$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv2HD/__op/default/__f/index.m3u8?token=271999be01e8d81c4e247d8d7b484c4f_1693532067_1693532067')">CCTV2</li>
                <li onclick="changeSource('http://113.207.84.197/session/459cb6e0-47a9-11ee-8422-525400dfb345$h1.0$tv.live.cbnbn.cn/673dxt/__cl/cg:live/__c/cctv3HD/__op/default/__f/index.m3u8?token=b2628f14bbfbb38e2b27a23121ece8bd_1693535479_1693535479')">CCTV3</li>
                
               
    </ul>
    <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
    <script>
        // 获取播放器和播放列表元素
        const player = document.getElementById('player');
        const playlist = document.getElementById('playlist');

        // 切换视频源函数
        function changeSource(source) {
            // 判断浏览器是否支持HLS
            if (Hls.isSupported()) {
                const hls = new Hls();
                hls.loadSource(source);
                hls.attachMedia(player);
            } else if (player.canPlayType('application/vnd.apple.mpegurl')) {
                player.src = source;
            }

            // 移除其他列表项的 active 样式，为当前项添加 active 样式
            const listItems = playlist.getElementsByTagName('li');
            Array.from(listItems).forEach((item) => {
                item.classList.remove('active');
            });

            // 找到对应的列表项并添加 active 样式
            const selectedListItem = playlist.querySelector(`[onclick="changeSource('${source}')]`);
            selectedListItem.classList.add('active');
        }

        // 监听播放器全屏事件，以应用自定义样式
        player.addEventListener('webkitfullscreenchange', () => {
            if (document.webkitFullscreenElement) {
                // 全屏时的样式
                player.style.width = '100%';
                player.style.height = '100%';
                player.style.objectFit = 'fill';
            } else {
                // 退出全屏时的样式
                player.style.width = '100%';
                player.style.height = 'auto';
                player.style.objectFit = 'contain';
            }
        });
    </script>
</body>
</html>